#include <stdio.h>
#include <stdlib.h>
#include "moudle.h"
char ch;
pointer head,p,q;
int main(){
	char ans;//user's choose
	printf("Do you want to open an existing file?(Y/N)\n>>>");
	while(1){
		ans=getchar();
		while( ( ch = getchar() ) != '\n' && ch != EOF );
		if(ans=='Y'||ans=='y'){
			rec();
			break;
		}else if(ans=='N'||ans=='n'){
			head=p=q=(pointer)malloc(sizeof(datedef));//creat a new list
			break;
		}else{
			printf("Please input Y OR N!\n>>>");
		}
	};
	showmenu();
	return 0;
}




